<?php
defined("_VALID_ACCESS") || die('Direct access forbidden');
    class Eyeworx_Inventory_SolutionsImportInstall extends ModuleInstall {

        public function install() {
            try {
                $contactlens_recordset = new Eyeworx_Inventory_SolutionsImport_RBO_RBOSolutionsImport();
                $contactlens_recordset->install();
                $contactlens_recordset->register_processing_callback(array('Eyeworx_Inventory_SolutionsImportCommon','submit_solution'));
                $contactlens_recordset->add_default_access();
                $contactlens_recordset->set_caption('Solutions Import');
            } catch (Exception $e) {
                return false;
            }
            return true;
        }

        public function uninstall() {
            try {
                $contactlens_recordset = new Eyeworx_Inventory_SolutionsImport_RBO_RBOSolutionsImport();
                $contactlens_recordset->uninstall();
            } catch (Exception $e) {
                return false;
            }
            return true;
        }

        public function requires($v) {
            return array(
                array('name'=>'Base/Lang','version'=>0),
                array('name'=>'Utils/RecordBrowser','version'=>0),
            );
        }

        public function info() {
            return array(
                'Author'=>'Pauline Joy Garcia',
                'Description'=>'Email: paulinejoygarcia@gmail.com'
            );
        }

        public function version() {
            return array('1.0');
        }

        public function simple_setup() {
            return array('package'=>__('Eyeworx'), 'option'=>__('Solutions Import'));
        }
    }

?>